import React ,{Component} from "react"
import {Image,FlatList,StyleSheet,Text,View,Button,TextInput,Modal} from "react-native"
import SelectListComponent from "../../pages/dynamic/LatestInformation";
export default class SelectListModal extends React.Component{

    constructor(props){
        super(props);
        this.state = {
            showModal:true
        };
        this.closeModal = this.closeModal.bind(this);
    }
    closeModal(){
        this.setState({
            showModal:false
        })
    }


    render(){
        return <Modal
                animationType={"slide"}
                transparent={true}
                visible={this.state.showModal}
                onRequestClose={this.closeModal}
                style={{backgroundColor:"red"}}>
            <SelectListComponent data={ ["日用类","服装类","母婴类","餐饮类"]} click={(value,key)=>{console.log("props ==>",value,key)}}/>
        </Modal>
    }
}

